<?php 
require('./lib/init.php');//函数能用
if(!acc()){
	header('Location:login.php');
	exit();
}
$sql = "select art_id,title,pubtime,comm,catname from art inner join cat on art.cat_id=cat.cat_id";
$arts = mGetAll($sql);
//var_dump($arts);

require(ROOT.'/view/admin/artlist.html');//模版得能看见
